import request from '@/utils/request'

// 查询保护装置信息列表
export function listProtectDevice(query) {
  return request({
    url: '/substation/protectDevice/list',
    method: 'get',
    params: query
  })
}

// 查询保护装置信息详细
export function getProtectDevice(id) {
  return request({
    url: '/substation/protectDevice/' + id,
    method: 'get'
  })
}

// 新增保护装置信息
export function addProtectDevice(data) {
  return request({
    url: '/substation/protectDevice',
    method: 'post',
    data: data
  })
}

// 修改保护装置信息
export function updateProtectDevice(data) {
  return request({
    url: '/substation/protectDevice',
    method: 'put',
    data: data
  })
}

// 删除保护装置信息
export function delProtectDevice(id) {
  return request({
    url: '/substation/protectDevice/' + id,
    method: 'delete'
  })
}
